﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Data.SqlClient;
using System.Data;
using System.Web.Configuration;
using System.Configuration;


/// <summary>
/// Summary description for cs_Data
/// </summary>
public class cs_Data
{
	public cs_Data()
	{
		//
		// TODO: Add constructor logic here
		//
	}
    public static ConnectionStringSettings PersonialConnString = WebConfigurationManager.ConnectionStrings["TwniceFoodConnectionString"];
    public static DataTable MFC()
    {
        string sqlsel = "Select * From Favorite";
        SqlConnection conn = new SqlConnection(PersonialConnString.ConnectionString);
        SqlDataAdapter da = new SqlDataAdapter(sqlsel, conn);
        DataTable dt = new DataTable();
        da.Fill(dt);
        return dt;

    }
}